<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./js/jquery.js"></script>
    <style>
      * {
        margin: 0;
        padding: 0;
      }
      .box {
        width: 100px;
        height: 100px;
        background-color: aqua;
        margin-top: 20px;
        margin-left: 100px;
        position: absolute;
      }
    </style>
  </head>
  <body>
    <button>开始运动</button>
    <div class="box"></div>
    <script>
      $(function () {
        // $(".box").hover(function () {
        //      $(this).animate({
        //     width:200
        //    },300)
        // },function () {
        //      $(this).animate({
        //     width:100
        //    },300)
        // })
          $("button").click(function (){
            $(".box").animate({
             left:500
            },1000)
          })
      });
    </script>
  </body>
</html>
